package com.xiaomi.eco.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaomi.eco.dal.entity.EcoMethodDimensionEntity;
import com.xiaomi.eco.dal.res.CompanyAvailabilityRes;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface EcoMethodDimensionEntityMapper extends BaseMapper<EcoMethodDimensionEntity> {

    void ClearData();

    void deleteByToday();

    EcoMethodDimensionEntity getEcoMethodDimensionByHttpMethodName(@Param("methodNamePara") String httpMethodName,@Param("methodTypePara") String methodType);

    List<CompanyAvailabilityRes> avaliableSeven();

    //判断过去7天整体调用数是否为0
    List<CompanyAvailabilityRes> totalSeven();


    List<EcoMethodDimensionEntity> sevenLatestValue();
}
